<div>
<div> <h2 class="title-list">Thông tin giỏ hàng </h2></div>
	<?php
		$max=count($_SESSION['cart']);
		
		echo("<table cellspacing='1' cellpadding='5'><tr class='title-list'>
					<td style='width: 30px'> STT </td>
					<td style='width: 200px'> Tên sản phẩm </td>
					<td style='width: 400px'> Giá </td>
					<td style='width: 400px'> Số lượng </td>
					<td style='width: 500px'> Xóa </td></tr>");
		$tenSP = "";
		$giaSanPham = "";
		$soLuong = "";
		for($i=0;$i<$max;$i++){
			$idSP = $_SESSION['cart'][$i]['productid'];
			$tenSP = $_SESSION['cart'][$i]['productname'];
			$giaSanPham = $_SESSION['cart'][$i]['productprice'];
			$soLuong = $_SESSION['cart'][$i]['qty'];
			echo("<tr><td style='width: 30px'>" .  ($i +1) . "</td>
					<td style='width: 300px'>" . $tenSP . "</td>
					<td style='width: 100px'>" . $giaSanPham . "</td>
					<td style='width: 100px'>" . $soLuong . "</td>");
			echo("<td><a href='?view=viewCart&&actDel=delcart&&id=$idSP'>Xóa</a></td></tr>");
		}
		echo("</table>");
		
		?>
		<div>
			<form action="" method="post" name="">
				<input type="submit" name="btnThanhToan" value="Thanh toán"/>
			</form>
		</div>
</div>